﻿@using ChampionsLeagueBets.Web.Mvc.Controllers.ViewModels
@model UserViewModel
@{
	ViewBag.Title = "Nowy gracz";
	ViewBag.Image = "~/Content/images/user-64.png";
}
@using (Html.BeginForm())
{
	@Html.AntiForgeryToken()

	<div id="content">
		<fieldset class="form-data">
			<legend>Dane podstawowe</legend>
			<table>
				<tr>
					<th>
						Login:
					</th>
					<td>@Html.EditorFor(u => u.User.UserName) @Html.ValidationMessageFor(u => u.User.UserName)
					</td>
				</tr>
				<tr>
					<th>
						Imię:
					</th>
					<td>@Html.EditorFor(u => u.User.FirstName) @Html.ValidationMessageFor(u => u.User.FirstName)
					</td>
				</tr>
				<tr>
					<th>
						Nazwisko:
					</th>
					<td>@Html.EditorFor(u => u.User.Surname) @Html.ValidationMessageFor(u => u.User.Surname)
					</td>
				</tr>
				<tr>
					<th>
						Email:
					</th>
					<td>@Html.EditorFor(u => u.User.Email) @Html.ValidationMessageFor(u => u.User.Email)
					</td>
				</tr>
				<tr>
					<th>
						Hasło:
					</th>
					<td>@Html.PasswordFor(u => u.FirstPassword) @Html.ValidationMessageFor(u => u.FirstPassword)
					</td>
				</tr>
				<tr>
					<th>
						Powtórz hasło:
					</th>
					<td>@Html.PasswordFor(u => u.SecondPassword) @Html.ValidationMessageFor(u => u.SecondPassword)
					</td>
				</tr>
				<tr>
					<th>
						Administrator:
					</th>
					<td>@Html.EditorFor(u => u.User.IsAdmin)
					</td>
				</tr>
			</table>
		</fieldset>
	</div>
	<div class="ui-actions">
		@Html.SubmitButton("btnSubmit", "Dodaj")
		@(Html.ActionLink<UsersController>(c => c.Index(), "Anuluj", new { @class = "link-button" }))
	</div>
}